import React, { Component } from 'react'
import MainContext from './context'
export class ccc extends Component {
  static contextType = MainContext
  render() {
    return (
      <div>
        <h1>不属于当前组件树的组件</h1>
        内容：{this.context}
      </div>
    )
  }
}

export default ccc